import request from '@/utils/request'

// 查询公寓人员列表
export function listLifeApartmentPerson(query) {
  return request({
    url: '/life/lifeApartmentPerson/list',
    method: 'get',
    params: query
  })
}

// 查询公寓人员详细
export function getLifeApartmentPerson(id) {
  return request({
    url: '/life/lifeApartmentPerson/' + id,
    method: 'get'
  })
}

// 查询公寓列表
export function listApartment(parkNum) {
  return request({
    url: '/life/lifeApartmentPerson/getApartment/' + parkNum,
    method: 'get'
  })
}

// 新增公寓人员
export function addLifeApartmentPerson(data) {
  return request({
    url: '/life/lifeApartmentPerson',
    method: 'post',
    data: data
  })
}

// 修改公寓人员
export function updateLifeApartmentPerson(data) {
  return request({
    url: '/life/lifeApartmentPerson',
    method: 'put',
    data: data
  })
}

// 删除公寓人员
export function delLifeApartmentPerson(id) {
  return request({
    url: '/life/lifeApartmentPerson/' + id,
    method: 'delete'
  })
}
